<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Let's study English !</title>
    <meta name="description" content="Ela Admin - HTML5 Admin Template">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="apple-touch-icon" href="https://i.imgur.com/QRAUqs9.png">
    <link rel="shortcut icon" href="https://i.imgur.com/QRAUqs9.png">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.0/normalize.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lykmapipo/themify-icons@0.1.2/css/themify-icons.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pixeden-stroke-7-icon@1.2.3/pe-icon-7-stroke/dist/pe-icon-7-stroke.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.2.0/css/flag-icon.min.css">
    <link rel="stylesheet" th:href="@{/static/css/cs-skin-elastic.css}">
    <link rel="stylesheet" th:href="@{/static/css/style.css}">

    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800' rel='stylesheet' type='text/css'>



</head>

<body>






<div th:replace="common/leftbar::leftbar"></div>



<div id="right-panel" class="right-panel">

    <!-- Header-->
    <!-- Header-->
    <div th:replace="common/header::header"/>

    <div class="breadcrumbs">
        <div class="breadcrumbs-inner">
            <div class="row m-0">
                <div class="col-sm-4">
                    <div class="page-header float-left">
                        <div class="page-title">
                            <h1>当前位置</h1>
                        </div>
                    </div>
                </div>
                <div class="col-sm-8">
                    <div class="page-header float-right">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a href="#">主页</a></li>
                                <li><a href="#">学习中心</a></li>
                                <li class="active">背单词</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="content">
        <div class="row">
        <div class="col-md-6">
            <div class="card">
                <div class="card-body">
                    <div class="mx-auto d-block">
                        <img class=" mx-auto d-block" th:src="@{/static/images/cet4.png}" alt="Card image cap">
                    </div>
                    <div class="progress-box progress-1">
                        <h4 class="por-title">已完成的进度</h4>

                        <strong class="por-txt float-right">[[${Cet4Remember}]]/[[${Cet4Number}]]词</strong>
                        <br>
                        <div class="progress mb-2" style="height: 5px;">
                            <div id="progress-cet4" class="progress-bar bg-flat-color-1" role="progressbar" style="width:10%"  aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>

                            <!--从后台获取%，修改样式-->
                            <script th:inline="javascript">
                                var num = [[${percent4}]];
                                console.log(num);
                                var obj=document.getElementById('progress-cet4');
                                obj.style.width= num ;
                            </script>
                        </div>
                    </div>
                </div>

                <a class=" btn btn-outline-secondary" th:href="@{/studyWord/}+${cet4}">
                    <strong >选择四级</strong>
                </a>
            </div>
        </div>

        <div class="col-md-6">
            <div class="card">
                <div class="card-body">
                    <div class="mx-auto d-block">
                        <img class="mx-auto d-block" th:src="@{/static/images/cet6.png}" alt="Card image cap">
                        <div class="progress-box progress-1">
                            <h4 class="por-title">已完成的进度</h4>
                            <strong class="por-txt float-right">[[${Cet6Remember}]]/[[${Cet6Number}]]词</strong>
                            <br>
                            <div class="progress mb-2" style="height: 5px;">
                                <div id="progress-cet6" class="progress-bar bg-flat-color-1" role="progressbar" style="width: 40%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                                <!--从后台获取%，修改样式-->
                                <script th:inline="javascript">
                                    var num = [[${percent6}]];
                                    console.log(num);
                                    var obj=document.getElementById('progress-cet6');
                                    obj.style.width= num ;
                                </script>
                            </div>
                        </div>
                    </div>
                </div>
                <a class=" btn btn-outline-secondary" th:href="@{/studyWord/}+${cet6}">
                    <strong>选择六级</strong>
                </a>
            </div>
        </div>
        </div>

    </div><!-- .content -->

    <div class="clearfix"></div>

    <div th:replace="common/footer::footer"/>


</div><!-- /#right-panel -->


<script src="https://cdn.jsdelivr.net/npm/jquery@2.2.4/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-match-height@0.7.2/dist/jquery.matchHeight.min.js"></script>
<script th:src="@{/static/js/main.js}"></script>
</body>
</html>